package net.zoneland.knowledge.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 管理员接口
 */
@Mapper
public interface PartyUserLeaderMapper {

    /**
     * 根据员工编号获取管理员表的数量，用来判断是否存在
     * @param userId
     * @return
     */
    @Select({"select count(1) from AITK_PARTY_USER_LEADER where USER_ID = #{userId, jdbcType = VARCHAR}"})
    int getAdminNumByUser(@Param("userId") String userId);
}
